package com.uplooking.pojo;

import java.util.ArrayList;
import java.util.List;

public class PermVOExample {
    protected String orderByClause;

    protected boolean distinct;
    
    protected Integer start;

	protected Integer limit;

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

    protected List<Criteria> oredCriteria;

    public PermVOExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPmidIsNull() {
            addCriterion("pmid is null");
            return (Criteria) this;
        }

        public Criteria andPmidIsNotNull() {
            addCriterion("pmid is not null");
            return (Criteria) this;
        }

        public Criteria andPmidEqualTo(Integer value) {
            addCriterion("pmid =", value, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidNotEqualTo(Integer value) {
            addCriterion("pmid <>", value, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidGreaterThan(Integer value) {
            addCriterion("pmid >", value, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidGreaterThanOrEqualTo(Integer value) {
            addCriterion("pmid >=", value, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidLessThan(Integer value) {
            addCriterion("pmid <", value, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidLessThanOrEqualTo(Integer value) {
            addCriterion("pmid <=", value, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidIn(List<Integer> values) {
            addCriterion("pmid in", values, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidNotIn(List<Integer> values) {
            addCriterion("pmid not in", values, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidBetween(Integer value1, Integer value2) {
            addCriterion("pmid between", value1, value2, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidNotBetween(Integer value1, Integer value2) {
            addCriterion("pmid not between", value1, value2, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmnameIsNull() {
            addCriterion("pmname is null");
            return (Criteria) this;
        }

        public Criteria andPmnameIsNotNull() {
            addCriterion("pmname is not null");
            return (Criteria) this;
        }

        public Criteria andPmnameEqualTo(String value) {
            addCriterion("pmname =", value, "pmname");
            return (Criteria) this;
        }

        public Criteria andPmnameNotEqualTo(String value) {
            addCriterion("pmname <>", value, "pmname");
            return (Criteria) this;
        }

        public Criteria andPmnameGreaterThan(String value) {
            addCriterion("pmname >", value, "pmname");
            return (Criteria) this;
        }

        public Criteria andPmnameGreaterThanOrEqualTo(String value) {
            addCriterion("pmname >=", value, "pmname");
            return (Criteria) this;
        }

        public Criteria andPmnameLessThan(String value) {
            addCriterion("pmname <", value, "pmname");
            return (Criteria) this;
        }

        public Criteria andPmnameLessThanOrEqualTo(String value) {
            addCriterion("pmname <=", value, "pmname");
            return (Criteria) this;
        }

        public Criteria andPmnameLike(String value) {
            addCriterion("pmname like", value, "pmname");
            return (Criteria) this;
        }

        public Criteria andPmnameNotLike(String value) {
            addCriterion("pmname not like", value, "pmname");
            return (Criteria) this;
        }

        public Criteria andPmnameIn(List<String> values) {
            addCriterion("pmname in", values, "pmname");
            return (Criteria) this;
        }

        public Criteria andPmnameNotIn(List<String> values) {
            addCriterion("pmname not in", values, "pmname");
            return (Criteria) this;
        }

        public Criteria andPmnameBetween(String value1, String value2) {
            addCriterion("pmname between", value1, value2, "pmname");
            return (Criteria) this;
        }

        public Criteria andPmnameNotBetween(String value1, String value2) {
            addCriterion("pmname not between", value1, value2, "pmname");
            return (Criteria) this;
        }

        public Criteria andPmtitleIsNull() {
            addCriterion("pmtitle is null");
            return (Criteria) this;
        }

        public Criteria andPmtitleIsNotNull() {
            addCriterion("pmtitle is not null");
            return (Criteria) this;
        }

        public Criteria andPmtitleEqualTo(String value) {
            addCriterion("pmtitle =", value, "pmtitle");
            return (Criteria) this;
        }

        public Criteria andPmtitleNotEqualTo(String value) {
            addCriterion("pmtitle <>", value, "pmtitle");
            return (Criteria) this;
        }

        public Criteria andPmtitleGreaterThan(String value) {
            addCriterion("pmtitle >", value, "pmtitle");
            return (Criteria) this;
        }

        public Criteria andPmtitleGreaterThanOrEqualTo(String value) {
            addCriterion("pmtitle >=", value, "pmtitle");
            return (Criteria) this;
        }

        public Criteria andPmtitleLessThan(String value) {
            addCriterion("pmtitle <", value, "pmtitle");
            return (Criteria) this;
        }

        public Criteria andPmtitleLessThanOrEqualTo(String value) {
            addCriterion("pmtitle <=", value, "pmtitle");
            return (Criteria) this;
        }

        public Criteria andPmtitleLike(String value) {
            addCriterion("pmtitle like", value, "pmtitle");
            return (Criteria) this;
        }

        public Criteria andPmtitleNotLike(String value) {
            addCriterion("pmtitle not like", value, "pmtitle");
            return (Criteria) this;
        }

        public Criteria andPmtitleIn(List<String> values) {
            addCriterion("pmtitle in", values, "pmtitle");
            return (Criteria) this;
        }

        public Criteria andPmtitleNotIn(List<String> values) {
            addCriterion("pmtitle not in", values, "pmtitle");
            return (Criteria) this;
        }

        public Criteria andPmtitleBetween(String value1, String value2) {
            addCriterion("pmtitle between", value1, value2, "pmtitle");
            return (Criteria) this;
        }

        public Criteria andPmtitleNotBetween(String value1, String value2) {
            addCriterion("pmtitle not between", value1, value2, "pmtitle");
            return (Criteria) this;
        }

        public Criteria andPmmouteIsNull() {
            addCriterion("pmmoute is null");
            return (Criteria) this;
        }

        public Criteria andPmmouteIsNotNull() {
            addCriterion("pmmoute is not null");
            return (Criteria) this;
        }

        public Criteria andPmmouteEqualTo(String value) {
            addCriterion("pmmoute =", value, "pmmoute");
            return (Criteria) this;
        }

        public Criteria andPmmouteNotEqualTo(String value) {
            addCriterion("pmmoute <>", value, "pmmoute");
            return (Criteria) this;
        }

        public Criteria andPmmouteGreaterThan(String value) {
            addCriterion("pmmoute >", value, "pmmoute");
            return (Criteria) this;
        }

        public Criteria andPmmouteGreaterThanOrEqualTo(String value) {
            addCriterion("pmmoute >=", value, "pmmoute");
            return (Criteria) this;
        }

        public Criteria andPmmouteLessThan(String value) {
            addCriterion("pmmoute <", value, "pmmoute");
            return (Criteria) this;
        }

        public Criteria andPmmouteLessThanOrEqualTo(String value) {
            addCriterion("pmmoute <=", value, "pmmoute");
            return (Criteria) this;
        }

        public Criteria andPmmouteLike(String value) {
            addCriterion("pmmoute like", value, "pmmoute");
            return (Criteria) this;
        }

        public Criteria andPmmouteNotLike(String value) {
            addCriterion("pmmoute not like", value, "pmmoute");
            return (Criteria) this;
        }

        public Criteria andPmmouteIn(List<String> values) {
            addCriterion("pmmoute in", values, "pmmoute");
            return (Criteria) this;
        }

        public Criteria andPmmouteNotIn(List<String> values) {
            addCriterion("pmmoute not in", values, "pmmoute");
            return (Criteria) this;
        }

        public Criteria andPmmouteBetween(String value1, String value2) {
            addCriterion("pmmoute between", value1, value2, "pmmoute");
            return (Criteria) this;
        }

        public Criteria andPmmouteNotBetween(String value1, String value2) {
            addCriterion("pmmoute not between", value1, value2, "pmmoute");
            return (Criteria) this;
        }

        public Criteria andPmtokenIsNull() {
            addCriterion("pmtoken is null");
            return (Criteria) this;
        }

        public Criteria andPmtokenIsNotNull() {
            addCriterion("pmtoken is not null");
            return (Criteria) this;
        }

        public Criteria andPmtokenEqualTo(String value) {
            addCriterion("pmtoken =", value, "pmtoken");
            return (Criteria) this;
        }

        public Criteria andPmtokenNotEqualTo(String value) {
            addCriterion("pmtoken <>", value, "pmtoken");
            return (Criteria) this;
        }

        public Criteria andPmtokenGreaterThan(String value) {
            addCriterion("pmtoken >", value, "pmtoken");
            return (Criteria) this;
        }

        public Criteria andPmtokenGreaterThanOrEqualTo(String value) {
            addCriterion("pmtoken >=", value, "pmtoken");
            return (Criteria) this;
        }

        public Criteria andPmtokenLessThan(String value) {
            addCriterion("pmtoken <", value, "pmtoken");
            return (Criteria) this;
        }

        public Criteria andPmtokenLessThanOrEqualTo(String value) {
            addCriterion("pmtoken <=", value, "pmtoken");
            return (Criteria) this;
        }

        public Criteria andPmtokenLike(String value) {
            addCriterion("pmtoken like", value, "pmtoken");
            return (Criteria) this;
        }

        public Criteria andPmtokenNotLike(String value) {
            addCriterion("pmtoken not like", value, "pmtoken");
            return (Criteria) this;
        }

        public Criteria andPmtokenIn(List<String> values) {
            addCriterion("pmtoken in", values, "pmtoken");
            return (Criteria) this;
        }

        public Criteria andPmtokenNotIn(List<String> values) {
            addCriterion("pmtoken not in", values, "pmtoken");
            return (Criteria) this;
        }

        public Criteria andPmtokenBetween(String value1, String value2) {
            addCriterion("pmtoken between", value1, value2, "pmtoken");
            return (Criteria) this;
        }

        public Criteria andPmtokenNotBetween(String value1, String value2) {
            addCriterion("pmtoken not between", value1, value2, "pmtoken");
            return (Criteria) this;
        }

        public Criteria andPmdescIsNull() {
            addCriterion("pmdesc is null");
            return (Criteria) this;
        }

        public Criteria andPmdescIsNotNull() {
            addCriterion("pmdesc is not null");
            return (Criteria) this;
        }

        public Criteria andPmdescEqualTo(String value) {
            addCriterion("pmdesc =", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescNotEqualTo(String value) {
            addCriterion("pmdesc <>", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescGreaterThan(String value) {
            addCriterion("pmdesc >", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescGreaterThanOrEqualTo(String value) {
            addCriterion("pmdesc >=", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescLessThan(String value) {
            addCriterion("pmdesc <", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescLessThanOrEqualTo(String value) {
            addCriterion("pmdesc <=", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescLike(String value) {
            addCriterion("pmdesc like", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescNotLike(String value) {
            addCriterion("pmdesc not like", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescIn(List<String> values) {
            addCriterion("pmdesc in", values, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescNotIn(List<String> values) {
            addCriterion("pmdesc not in", values, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescBetween(String value1, String value2) {
            addCriterion("pmdesc between", value1, value2, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescNotBetween(String value1, String value2) {
            addCriterion("pmdesc not between", value1, value2, "pmdesc");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}